package com.suanfa8.controller;

import com.suanfa8.entity.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    // http://localhost:8889/hello/666
    @RequestMapping("/hello/{id}")
    public User hello(@PathVariable("id")Long id){
        return new User(id,"liwei","123456");
    }

}
